package com.xtx.air.common;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public final class XtxTradeUtils {

	private static final SimpleDateFormat TRADE_NUM_DATE_FORMAT = new SimpleDateFormat("yyyyMMddHHmmss");

	/**
	 * 生成交易编号
	 * 
	 * @return
	 */
	public synchronized static final String generateTradeNumPrefix() {
		return TRADE_NUM_DATE_FORMAT.format(Calendar.getInstance().getTime());
	}
}